package edu.sctu.practice.class02.lvchang.test22;

/**
 * Created by Administrator on 2015/10/20.
 */
public class InterfaceDemo {

    public static void main(String[] args) {

        Vehicle vehicle;
        vehicle = new Bike();
        System.out.println(vehicle.start("自行车可以启动！"));
        System.out.println(vehicle.stop("自行车可以停下来！"));


        vehicle = new Bus();
        System.out.println(vehicle.start("公共汽车可以启动！"));
        System.out.println(vehicle.start("公共汽车可以停下来！"));

    }
}
